﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XiaoShouJiLu_Search.aspx.cs" Inherits="syc.Sale.XiaoShouJiLu_Search" %>

<head runat="server">
    <title></title>
</head>
<body>
 <script type="text/javascript" language="javascript" src="/common.js"></script>
    
    <form id="form1" runat="server">
  
        <div id="wintop" class="wintop"><span lang="zh-cn"><u>销售记录管理</u></span></div>
       <asp:Panel ID="Panel1" runat="server" CssClass="panel">
        <asp:Button ID="Button_Query"
            runat="server" Text="查 询" CssClass="button" UseSubmitBehavior="true" 
            onclick="Button_Query_Click"  />
            <span style="width:30px;"></span>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" CssClass="panel">
        <span lang="zh-cn">订货单位：</span><asp:DropDownList ID="DingHuoDanWei" 
            runat="server" DataSourceID="SqlDataSource2" DataTextField="名称" 
            DataValueField="名称">
        </asp:DropDownList>
        &nbsp; &nbsp; 合同编号:<asp:TextBox ID="HeTongHao" runat="server" Width="78px" CssClass="intxt1"></asp:TextBox>
        &nbsp;开始日期：<asp:TextBox ID="Date1" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox>
        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" />
        结束日期：<asp:TextBox ID="Date2" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date2').value, document.getElementById('Date2'));" />
        <asp:SqlDataSource 
            ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
            SelectCommand="select 0 as [ID], '全部' as [名称] union SELECT [ID], [名称] FROM [产品订货单位]"></asp:SqlDataSource>

    </asp:Panel>
 <div class="gridframe">
        <div class="gridview">
        
            <table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolor="#d0d0d0">
	            <tr>
		            <td class="grid-title">销售记录      
		        </tr>
		        <tr>
		            <td class="grid-back">
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" ></asp:SqlDataSource>
                          <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" CssClass="grid" 
                            DataSourceID="SqlDataSource1" GridLines="None" 
                            UseAccessibleHeader="False" ItemStyle-Width="80" 
                            ItemStyle-HorizontalAlign="Center" ItemStyle-CssClass="grid" 
                            ondatabound="GridView1_DataBound" 
                            onpageindexchanged="GridView1_PageIndexChanged" Width="600px">
                            <PagerSettings Visible="False" />
                            <RowStyle CssClass="grid-row-normal" />
                            <Columns>
                                <asp:BoundField DataField="发往单位" HeaderText="发往单位" InsertVisible="False" 
                                    ReadOnly="True" SortExpression="发往单位"  ItemStyle-CssClass="grid" 
                                    HeaderStyle-CssClass="grid-header">
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="品名" HeaderText="品名" SortExpression="品名" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header">
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="规格" HeaderText="规格" SortExpression="规格" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header">
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="合同编号" HeaderText="合同编号" SortExpression="合同编号" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="发运时间" DataFormatString="{0:D}" HeaderText="发运时间" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                    SortExpression="发运时间" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="整车捆数" HeaderText="整车捆数" SortExpression="整车捆数" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="整车支数" HeaderText="整车支数" SortExpression="整车支数" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                  <asp:BoundField DataField="整车吨位" HeaderText="整车吨位" SortExpression="整车吨位" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                  <asp:BoundField DataField="整车米数" HeaderText="整车米数" SortExpression="整车米数" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="车号" HeaderText="车号" SortExpression="车号" 
                                    ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header" >
<HeaderStyle CssClass="grid-header"></HeaderStyle>

<ItemStyle CssClass="grid"></ItemStyle>
                                </asp:BoundField>
                            </Columns>
                        </asp:GridView>
                          
                         
		            </td>
	            </tr>
	            <tr>
		            <td>   
		                <table width="100%">
		                    <tr>
		                        <td class="pagebar">
                                    <asp:Button ID="Button_Pager_First" runat="server" Text="" ToolTip="首页" 
                                        CssClass="pageturn-first-b" onclick="Pager_Click" CommandName="--" />
                                    <asp:Button ID="Button_Pager_Prev" runat="server" Text="" ToolTip="上一页" 
                                        CssClass="pageturn-prev-b" onclick="Pager_Click" CommandName="-" />
                                    <input type="button" class="page-split" />第<asp:TextBox ID="TextBox_Pager" runat="server" CssClass="pageturn" 
                                        ontextchanged="Pager_Click"></asp:TextBox>页<input type="button" class="page-split" /><asp:Label ID="Label_Pages" runat="server"></asp:Label><input type="button" class="page-split" />
                                    
                                    <asp:Button ID="Button_Pager_Next" runat="server" Text="" ToolTip="下一页" 
                                        CssClass="pageturn-next-b" onclick="Pager_Click" CommandName="+" />
                                    <asp:Button ID="Button_Pager_Last" runat="server" Text="" ToolTip="末页" 
                                        CssClass="pageturn-last-b" onclick="Pager_Click" CommandName="++" />
                                </td>
                                <td align="right">
                                    <asp:Label ID="Label_Total" runat="server" CssClass="grid_totalrows"></asp:Label>
                                </td>
                            </tr>
                       </table>

		            </td>
	            </tr>
            </table>
            

        </div>
    </div>
    </form>
    <script>
        var textboxs = document.getElementsByTagName("input");
        var i;
        for (i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "textbox") {
                textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
                textboxs[i].onfocus = function(e) { this.select(); };
            }
            else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }

        }
        var rows = document.getElementsByTagName("tr");
        for (i = 0; i < rows.length; i++) {

            if (rows[i].className == "grid-row-normal") {
                rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
                rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
            }
        }
        var tds = document.getElementsByTagName("td");
        for (i = 0; i < tds.length; i++) {
            if (tds[i].className == "detailheader") {
                tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
            }
        }
</script>
</body>
</html>
